/**
 * 商品相关信息存储
 */
export default {
  // 开启命名空间
  namespaced: true,
  state: {
    // 浏览的商品的ID
    commodityId: null,
    // 管理的商品的ID
    manageCommodityId: null,
  },
  mutations: {
    updateCommodityId(state, val) {
      state.commodityId = val;
    },
    updateManageCommodityId(state, val) {
      state.manageCommodityId = val;
    },
    // clearAuth(state) {
    //   state.role = -1
    //   state.userId = null
    //   state.token = null
    // }
  },
  actions: {
  },
  getters: {
  }
}
